package first.endtoend

import first.endtoend.Beneficiary

/*
this service is related to beneficiary
 */

class BeneficiaryService
{

    def serviceMethod()
    {

    }


    def toJson(Beneficiary beneficiary)
    {

        if (beneficiary)
        {

            [
                    id         : beneficiary.id,
                    dateCreated: beneficiary.dateCreated,
                    firstName  : beneficiary.firstName,
                    lastName   : beneficiary.lastName,
                    lastUpdated: beneficiary.lastUpdated,
                    photoURL   : beneficiary.photoURL,

            ]
        }
    }
}
